package com.gewu.pm.bean;

/**
 * 销售订单数据类
 */
public class SalesOrderBean {
    
    private String terminalName;      // 终端名称
    private String submitter;         // 提交人
    private String submitTime;        // 提交时间
    private String orderNo;           // 订单编码
    private String vehicleCode;       // 车辆编码
    private String distributor;       // 配送商
    private String salesman;          // 业务员
    private String salesArea;         // 销售区域
    private String amount;            // 订单金额
    private String status;            // 状态：1-已审批，2-部分发货，3-未审批，4-已发货，5-已完成，6-已取消
    
    public SalesOrderBean() {
    }
    
    public SalesOrderBean(String terminalName, String submitter, String submitTime, 
                     String orderNo, String vehicleCode, String distributor, 
                     String salesman, String salesArea, String amount, String status) {
        this.terminalName = terminalName;
        this.submitter = submitter;
        this.submitTime = submitTime;
        this.orderNo = orderNo;
        this.vehicleCode = vehicleCode;
        this.distributor = distributor;
        this.salesman = salesman;
        this.salesArea = salesArea;
        this.amount = amount;
        this.status = status;
    }
    
    public String getTerminalName() {
        return terminalName;
    }
    
    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }
    
    public String getSubmitter() {
        return submitter;
    }
    
    public void setSubmitter(String submitter) {
        this.submitter = submitter;
    }
    
    public String getSubmitTime() {
        return submitTime;
    }
    
    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }
    
    public String getOrderNo() {
        return orderNo;
    }
    
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    
    public String getVehicleCode() {
        return vehicleCode;
    }
    
    public void setVehicleCode(String vehicleCode) {
        this.vehicleCode = vehicleCode;
    }
    
    public String getDistributor() {
        return distributor;
    }
    
    public void setDistributor(String distributor) {
        this.distributor = distributor;
    }
    
    public String getSalesman() {
        return salesman;
    }
    
    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }
    
    public String getSalesArea() {
        return salesArea;
    }
    
    public void setSalesArea(String salesArea) {
        this.salesArea = salesArea;
    }
    
    public String getAmount() {
        return amount;
    }
    
    public void setAmount(String amount) {
        this.amount = amount;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    /**
     * 获取状态文本
     */
    public String getStatusText() {
        switch (status) {
            case "1":
                return "已审批";
            case "2":
                return "部分发货";
            case "3":
                return "未审批";
            case "4":
                return "已发货";
            case "5":
                return "已完成";
            case "6":
                return "已取消";
            default:
                return "";
        }
    }
}
